﻿using NLog;

namespace AisinGioro.Core
{
    public sealed class LogHelper
    {
        private static NLog.Logger _logger = LogManager.GetCurrentClassLogger();
        
        #region trace
        public static void Trace<T>(T value)
        {
            _logger.Trace(value);
        }
        public static void Trace(string message, params object[] args)
        {
            _logger.Trace(message, args);
        }
        #endregion

        #region debug
        public static void Debug<T>(T value)
        {
            _logger.Debug(value);
        }
        public static void Debug(string message, params object[] args)
        {
            _logger.Debug(message, args);
        }
        #endregion

        #region info
        public static void Info<T>(T value)
        {
            _logger.Info(value);
        }
        public static void Info(string message, params object[] args)
        {
            _logger.Info(message, args);
        }
        #endregion

        #region warn
        public static void Warn<T>(T value)
        {
            _logger.Warn(value);
        }
        public static void Warn(string message, params object[] args)
        {
            _logger.Warn(message, args);
        }
        #endregion

        #region error
        public static void Error<T>(T value)
        {
            _logger.Error(value);
        }
        public static void Error(string message, params object[] args)
        {
            _logger.Error(message, args);
        }
        #endregion

        #region fatal
        public static void Fatal<T>(T value)
        {
            _logger.Fatal(value);
        }
        public static void Fatal(string message, params object[] args)
        {
            _logger.Fatal(message, args);
        }
        #endregion
    }
}
